package com.example.moviegroup.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.moviegroup.R;

/**
 * Created by walymin-love on 2015/11/18.
 */
public class LoginActivity extends Activity implements View.OnClickListener {

    private Button btn_back,btn_zhuce,btn_forget;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        initView();
        setListener();
        initData();
    }

    public void initView() {
        btn_back = (Button) findViewById(R.id.btn_back);
        btn_zhuce = (Button) findViewById(R.id.btn_zhuce);
        btn_forget = (Button) findViewById(R.id.btn_forget);
    }

    public void setListener() {
        btn_back.setOnClickListener(this);
        btn_zhuce.setOnClickListener(this);
        btn_forget.setOnClickListener(this);
    }

    public void initData() {

    }

    @Override
    public void onClick(View v) {
        switch(v.getId()){
            case R.id.btn_back:
                finish();
                break;
            case R.id.btn_forget:
                Intent intent = new Intent(LoginActivity.this,FindActivity.class);
                startActivity(intent);
                break;
            case R.id.btn_zhuce:
                Intent intent1 = new Intent(LoginActivity.this,ZhuCeActivity.class);
                startActivity(intent1);
                break;
        }
    }
}
